package com.ruoyi.performancecomparisons.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.performancecomparisons.mapper.SeriesMapper;
import com.ruoyi.performancecomparisons.domain.Series;
import com.ruoyi.performancecomparisons.service.ISeriesService;

/**
 * seriesService业务层处理
 * 
 * @author yxy
 * @date 2024-11-07
 */
@Service
public class SeriesServiceImpl implements ISeriesService 
{
    @Autowired
    private SeriesMapper seriesMapper;

    /**
     * 查询series
     * 
     * @param id series主键
     * @return series
     */
    @Override
    public Series selectSeriesById(Long id)
    {
        return seriesMapper.selectSeriesById(id);
    }

    /**
     * 查询series列表
     * 
     * @param series series
     * @return series
     */
    @Override
    public List<Series> selectSeriesList(Series series)
    {
        return seriesMapper.selectSeriesList(series);
    }

    /**
     * 新增series
     * 
     * @param series series
     * @return 结果
     */
    @Override
    public int insertSeries(Series series)
    {
        return seriesMapper.insertSeries(series);
    }

    /**
     * 修改series
     * 
     * @param series series
     * @return 结果
     */
    @Override
    public int updateSeries(Series series)
    {
        return seriesMapper.updateSeries(series);
    }

    /**
     * 批量删除series
     * 
     * @param ids 需要删除的series主键
     * @return 结果
     */
    @Override
    public int deleteSeriesByIds(Long[] ids)
    {
        return seriesMapper.deleteSeriesByIds(ids);
    }

    /**
     * 删除series信息
     * 
     * @param id series主键
     * @return 结果
     */
    @Override
    public int deleteSeriesById(Long id)
    {
        return seriesMapper.deleteSeriesById(id);
    }

    /**
     * 根据optionn查询series列表
     */
    @Override
    public List<Series> selectSeriesListByoption(String optionn) {
        return seriesMapper.selectSeriesByoption(optionn);
    }
}
